﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DropDownList1.Items.Add("男");
            DropDownList1.Items.Add("女");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            this.PrintInfo.Text = "欢迎来到ASP.Net世界，"+this.NameBox.Text+"，你真棒";
        }
    }
}